import { get } from "./http";
import { ResponseType } from "./utils/utils";
import apiUrl from './apiUrl'
import { RListHdMaterialVo } from "./utils/homeTpye";
// 查询首页背景视频列表
export function getbannerlist() {
  return get<ResponseType>(apiUrl.bannerlist);
}
//关键词列表
export function getkeywordList() {
  return get<ResponseType>(apiUrl.keywordList);
}
// 获取网页滚动地址
export function getmaterialIndexlist() {
  return get<RListHdMaterialVo>(apiUrl.materialIndexlist);
}
// 获取网页滚动地址
export function getTreeList() {
  return get<RListHdMaterialVo>(apiUrl.categoryHomeList);
}
// 查询分类列表素材materialList
export function getmaterialList(id?:number | undefined | null | any) {
  return get<RListHdMaterialVo>(apiUrl.materialList,{name:name,categoryId:id, pageSize: 12});
}